home *** CD-ROM | disk | FTP | other *** search
- Subject: FW_CDragCommand--BeginDrag
- Sent: 3/6/96 2:23 PM
- Received: 3/6/96 2:31 PM
- From: Kirk Swenson, kswenson@mail.keypress.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- After implementing my undoable CDropCommand subclass, I can successfully
- undo/redo a Drag-Move within my part. I am only allowed one level of undo,
- however. In looking through the code, FW_CDragCommand::BeginDrag calls
- undo->MarkActionHistory(ev), with the comment "// in case operation fails and
- we need to roll back transactions." My reading of the OpenDoc Programmer's
- Guide suggests that marking is used for creating temporary subhistories,
- while rolling back a multistage transaction is accomplished without marking
- by calling AbortCurrentTransaction. This additional mark would be sufficient
- to prevent multiple levels of undo. Is this a bug in
- FW_CDragCommand::BeginDrag, or am I missing something?
-
- Kirk Swenson
- Senior Software Engineer
- Key Curriculum Press
- kswenson@keypress.com
-
-